// 游戏相关的TypeScript类型定义
export interface DrawPoint {
  x: number
  y: number
  color: string
  size: number
  timestamp: number
}

export interface DrawStroke {
  points: DrawPoint[]
  color: string
  size: number
  id: string
}

export interface ChatMessage {
  id: string
  playerId: string
  playerName: string
  content: string
  type: "guess" | "correct" | "system" | "chat"
  timestamp: number
}

export interface GameState {
  roomId: string
  players: Player[]
  currentDrawer: string | null
  currentWord: string | null
  timeLeft: number
  gameStatus: "waiting" | "drawing" | "guessing" | "finished"
  strokes: DrawStroke[]
  messages?: ChatMessage[]
  round?: number
  maxRounds?: number
}

export interface Player {
  id: string
  name: string
  score: number
  isDrawing: boolean
}

export interface WordBank {
  id: string
  name: string
  words: string[]
}
